AuthZenService
[Experimental] Search for resources a subject has access to
[Experimental] The ResourceSearch API returns all resources of a given type that a subject has a specific action (relation) on. This is useful for answering questions like “What documents can Anne read?” or “What folders can Bob administer?”
The resource type filter is required. Results support pagination for large result sets.
Examples
Find all documents a user can read
{
"subject": {"type": "user", "id": "anne"},
"action": {"name": "can_read"},
"resource": {"type": "document"}
}
Response:
{
"results": [
{"type": "document", "id": "roadmap"},
{"type": "document", "id": "budget-2024"},
{"type": "document", "id": "team-roster"}
],
"page": {"count": 3}
}
Find folders a user can administer with pagination
{
"subject": {"type": "user", "id": "bob"},
"action": {"name": "can_admin"},
"resource": {"type": "folder"},
"page": {"limit": 25}
}
Search with ABAC context
{
"subject": {"type": "user", "id": "anne"},
"action": {"name": "can_read"},
"resource": {"type": "document"},
"context": {
"current_time": "2024-01-15T10:00:00Z",
"ip_address": "192.168.1.100"
}
}
POST
curl
Path Parameters
Body
application/json
Last modified on September 28, 2026